package com.htsk.city.services.core.constant;

/**
 * @Author：mjiaxing
 * @CreateTime：2023-03-29
 * @Description：缓存常量信息
 * @Version：1.0.0
 */

public class CacheConstants
{
    /**
     * 缓存有效期，默认720（分钟）
     */
    public final static long EXPIRATION = 720;

    /**
     * 缓存刷新时间，默认120（分钟）
     */
    public final static long REFRESH_TIME = 120;

    /**
     * 密码最大错误次数
     */
    public final static int passwordMaxRetryCount = 5;

    /**
     * 密码锁定时间，默认10（分钟）
     */
    public final static long passwordLockTime = 10;

    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    public static final String REAL_DATA_TOP_LEFT="REAL_DATA_TOP_LEFT";
    public static final String REAL_DATA_TOP_RIGHT="REAL_DATA_TOP_RIGHT";
    public static final String REAL_DATA_BOTTOM_LEFT="REAL_DATA_BOTTOM_LEFT";
    public static final String REAL_DATA_BOTTOM_RIGHT="REAL_DATA_BOTTOM_RIGHT";

    public static final String REAL_DATA_FACE="REAL_DATA_FACE";

    public static final String SERVICE_TIME="SERVICE_TIME";

    public static final String FACE_POINT_LIST="FACE_POINT_LIST";

    public static final String PEAK_VALUE="PEAK_VALUE";

    public static final String TODAY_GAS_DATA="TODAY_GAS_DATA";

    public static final String REAL_GAS_DATA="REAL_GAS_DATA";

    public static final String CURRENT_CITY_ID="CURRENT_CITY_ID";
}

